package payroll.webapp

class Address {
	String street
	String city
	String province
	String zipcode
	Country country
	
    static constraints = {
		street(maxSize:50,nullable:true)
		city(maxSize:50,nullable:true)
		province(maxSize:50,nullable:true)
		zipcode(maxSize:50,nullable:true)
		person(nullable:true)
		employee(nullable:true)
    }
	
	static mapping = {
		table "addresses"
	}
	
	static belongsTo = [person:PersonDetails, employee:Employee]
}
